package org.lyl.vhr.controller;

import org.lyl.vhr.mapper.MenuMapper;
import org.lyl.vhr.model.Menu;
import org.lyl.vhr.model.RespBean;
import org.lyl.vhr.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lylbell
 * @date 2020-08-06 09:45
 */
@RestController
@RequestMapping("/system/config")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @GetMapping("/menu")
    public List<Menu> findMenuByHrId() {
        return menuService.findMenuByHrId();
    }
}
